Save_fAngleX = g_fAngleX 'Single ' 0.0 'Rotation angle for the x-axis
Save_fAngleY = g_fAngleY 'Single ' 0.0 'Rotation angle for the y-axis
Save_fAngleZ = g_fAngleZ 'Single ' 0.0 'Rotation angle for the y-axis
Save_fPosX = g_fPosX 'Single ' 0.0 'Camera position on the x-axis
Save_fPosY = g_fPosY 'Single ' 1.2 'Camera position on the y-axis
Save_fPosZ = g_fPosZ 'Single ' -8.0 'Camera position on the z-axis
Save_vlastPOS = M_vlastPOS 'D3DVECTOR
Save_vDir = M_vDir 'D3DVECTOR
Save_vVel = M_vVel 'D3DVECTOR
SAVEViewFrust = Data.ViewFrust
End Sub
Public Sub Roll_Left(ByVal AngleAmount As Single)
g_fAngleZ = g_fAngleZ + AngleAmount
If (g_fAngleZ >= 360# * QUEST3D_RAD) Then
g_fAngleZ = g_fAngleZ - 360# * QUEST3D_RAD
End If
m_bMovedSinceLastUpdate = True
End Sub
Public Sub Roll_Right(ByVal AngleAmount As Single)
g_fAngleZ = g_fAngleZ - AngleAmount
If (g_fAngleZ < 0) Then
g_fAngleZ = g_fAngleZ + 360# * QUEST3D_RAD
End If
m_bMovedSinceLastUpdate = True
End Sub
Sub Rotate(vRotationRadian As D3DVECTOR)
g_fAngleX = vRotationRadian.x
g_fAngleY = vRotationRadian.y
g_fAngleZ = vRotationRadian.z
m_bMovedSinceLastUpdate = True
End Sub
Public Sub RotateByMouse(Optional ByVal MouseSpeed As Single = 0.001, Optional ByVal InvertMouse As Boolean = 0, Optional ByVal CenterMousePos As Boolean = 0)